Repository navigation
fix(ios): change every privacy service for settings permission all - #4667
Conversation
The iOS 27 simulator records simctl privacy grant all as one kTCCServiceAll row that it never consults, so an app still prompts after grant all, and deny all leaves every per-service grant in place. Grant and deny of all now change each service in turn and report what changed, skipping a service the runtime refuses with a warning; reset all stays one call. iOS 27 words that refusal 'Failed to create TCC authorization record', which is now read as one, so a named notifications change is UNSUPPORTED_OPERATION again.
|
Thanks for the fix. At 06a6ac4 the code reads correctly, but one gap needs a live run before merge: This change rewrites the simctl calls behind grant, deny and reset of Not blocking, and you can take or leave these: The kTCCServiceAll behavior, the iOS 27 stderr wording and the per-service rows come from your observations, and they match the code. Limrun and older runtimes use the same path and are not covered, as the PR states. Fork CI has not run on this head yet, so a maintainer needs to approve the run. Before merge, the live TCC dumps for grant all, deny all and reset all on iOS 27.2 need to be in the PR. |
…failure left changed The services iOS all changes now derive from a table keyed by every permission target, so a new target is a compile error until it is placed, and the revoke list is that list plus photos-add with no ordering rule. A failure that is not a refusal stops the batch with the services already changed in its details.permissions. Revoking location-always also takes back while-in-use access on iOS 27.2, so location stays out of the list.
|
Thanks! The live run is done at 92eff8d on an iOS 27.2 simulator, and the dumps are in the PR body under "TCC and locationd dumps".
The non-blocking points, all in 92eff8d:
|
|
Thanks for the runs. The evidence gap from 06a6ac4 is closed at 92eff8d: the TCC and locationd dumps for grant all, deny all and reset all, plus the returning microphone prompt, cover what was missing. I found no code problems at this head. Older iOS runtimes and Limrun are not covered, as the PR states. No checks have reported on this fork head yet, because a maintainer needs to approve the CI run. After that run is green, nothing else blocks merge. |
Summary
On an iOS 27.2 simulator,
settings permission grant allanddeny allchange nothing the app sees.simctl privacy grant allwrites onekTCCServiceAllrow that iOS ignores, so the app still prompts.revoke allleaves the per-service rows in place.Grant and deny of
allnow change each service in turn:contactsandphotos, andlocation-always.deny allalso revokesphotos-add.Skipped <service>warning.details.permissions.reset allstays one call.iOS 27's refusal wording ("Failed to create TCC authorization record") is now classified as a refusal, so
grant notificationsisUNSUPPORTED_OPERATIONagain.5 files changed. Follow-up: #4668 (notifications).
Validation
pnpm check:affected --run --head 92eff8d6passed (exactCommit: true), run withGIT_CONFIG_GLOBAL=/dev/null, because my globalstatus.branch=truebreakscommitted-source-tree.test.ts.Live on an iPhone 17 Pro simulator, iOS 27.2, at
92eff8d6:4fcbc671grant allkTCCServiceAll=2only; the app shows the microphone alert=2for each service; "Microphone enabled"deny all20TCC and locationd dumps
Not covered: older runtimes, Limrun.